package com.example.downloaddemo.download;

import java.io.File;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class DownloadManagerService extends Service {

	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		File file = new File(DownloadConstants.DOWNLOAD_SAVE_FILE_ROOT);
		if (!file.exists()) {
			file.mkdir();
		}
		return super.onStartCommand(intent, flags, startId);
	}

}
